<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta property="og:title" content="Buy917團購網-{mb_strimwidth($value['title'],0,150,'...','UTF-8')}"/>
<meta property="og:description" content="{$cfg_site_description}"/>

<title>{$cfg_site_name}--{$cfg_site_description}</title>
{template 'header'}
<body>
<div id="buy917_wrap">
    <div id="buy917_header">
    	<div id="buy917_logo"><a href="index.php">Buy917</a></div>
        <div class="buy917_header_banner">
        	<div class="buy917_header_topbanner">
				{template 'login_line'} <!-- login_line.html 登入/註冊按鈕 -->
				<?php include("admin/event.php")?>
            </div>
          	<div class="buy917_header_select">
            	<div class="buy917_header_city">
                	 {if !empty($_cityid)}
                    <div class="guides">
                        <div class="city">
                            <h2>{$_cityname}</h2>
                        </div>
                        <div id="guides-city-change" class="change">切換城市</div>
                        <div id="guides-city-list" class="city-list">
                            <ul>
                            {loop $_citylist $v}
                                <li {if $v['cid']==$_cityid}class="current"{/if}><a href="index.php?cityid={$v['cid']}">{$v['cityname']}</a></li>
                            {/loop}
                            </ul>
                        </div>
                    </div>
                    {/if}
                </div>
                <div class="buy917_header_group">
                	{template 'headergroup'}
                </div>
            </div>
       </div>
    </div><!-- buy917_header -->

    {template 'menu_nav'} <!-- menu 導覽頁 -->


    {if $timestamp>$value['group_end_time'] || $value['stock']<=$value['group_buynum']}
		<div class="sysmsg-tip-deal-close" id="sysmsg-tip" style="clear:both; margin-top:30px;">
		  <div class="sysmsg-tip-top"></div>
		  <div class="sysmsg-tip-content">
			<div class="deal-close">
			  <div class="focus">抱歉，您來晚了，<br>
				團購已經結束啦。</div>
			  <div class="body" id="tip-deal-subscribe-body">
				<form onsubmit="_gaq.push(['_trackEvent', 'Form', 'Post', '/Form/Tipbar/maillist/subscribe'])" action="" method="post" id="tip-deal-subscribe-form">
				  <table>
					<tbody>
					  <tr>
						<td>不想錯過明天的團購？立刻訂閱每日最新團購信息：&nbsp;</td>
						<td><input type="text" value="" class="f-text" name="email" style="color: rgb(153, 153, 153);"></td>
						<td>&nbsp;
						  <input type="submit" value="訂閱">
						  <input type="hidden" value="1" name="cityid"></td>
					  </tr>
					</tbody>
				  </table>
				</form>
			  </div>
			</div>
			<span class="sysmsg-tip-close" id="sysmsg-tip-close">關閉</span></div>
		  <div class="sysmsg-tip-bottom"></div>
		</div>
		{/if}
    <div id="buy917_product">
		<div class="buy917_producttoday_top"></div>
	    <div class="buy917_producttoday_gb">

			<div id="buy917_share">
					<script>
		            function Facebook() {
						u=location.href;
						t=document.title;
						window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
						return false;
		//            　void(window.open('http://www.facebook.com/share.php?u='.concat(encodeURIComponent(location.href)).concat('&t=').concat('Buy917團購網 - {mb_strimwidth($value["title"],0,160,"...","UTF-8")}')  ));
		//            　void(window.open('http://www.facebook.com/share.php?u='.concat(encodeURIComponent(location.href)).'&t=' .concat('Buy917團購網 - {mb_strimwidth($value["title"],0,160,"...","UTF-8")}')  ));
		            }
		            function Plurk() {
		//            　void(window.open('http://www.plurk.com/?qualifier=shares&status=' .concat(encodeURIComponent(location.href)) .concat(' ') .concat('(') .concat(encodeURIComponent(document.title)) .concat(')')));
		            　void(window.open('http://www.plurk.com/?qualifier=shares&status=' .concat(encodeURIComponent(location.href)) .concat(' ') .concat('(') .concat('Buy917團購網 - {mb_strimwidth($value["title"],0,160,"...","UTF-8")}') .concat(')')));
		            }
		            function Twitter() {
		//            　void(window.open('http://twitter.com/home/?status=' .concat(encodeURIComponent (document.title)) .concat(' ') .concat(encodeURIComponent(location.href))));
		            　void(window.open('http://twitter.com/home/?status=' .concat('Buy917團購網 - {mb_strimwidth($value["title"],0,160,"...","UTF-8")}') .concat(' ') .concat(encodeURIComponent(location.href))));
		            }
		            </script>
	            	<span style="float:left;color:#000;"><strong>我要分享：</strong></span>
	              <ul>
	                <li><a href="javascript:void(0)" onclick="Facebook()" type="button" name="fb_share" class="fb" title="貼到 Facebook" style="color:#000;" >FB</a></li>
					<li><a href="javascript:void(0)" onclick="Plurk()" type="button" name="pl_share"  class="pl" title="貼到 Plurk" style="color:#000;">噗浪</a></li>
	                <li><a href="javascript:void(0)" onclick="Twitter()" type="button" name="tw_share" class="tw" title="貼到 Twitter" style="color:#000;">推特</a></li>
					<!--                <li><a class="im" href="javascript:void(0);" id="deal-share-im">MSN/QQ</a></li>-->
					<!--                <li><a galabel="default" class="email" href="javascript:void(0);" id="deal-share-ema">郵件</a></li>-->
					<li><a class="funp" href="http://funp.com/push/submit/add.php?&via=tools" title="貼到 funP" style="color:#000;">funP</a></li>
	                <!--				<li><a galabel="default" class="email" href="mailto:?subject={$subject}&body={$body}" title="轉寄郵件">郵件</a></li>-->
	              </ul>
				  <!--facebook 讚 開始-->
				  <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.buy917.com%2Fview.php%3Fgid%3D{$value['gid']}&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=20" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:20px;" allowTransparency="true"></iframe>
				  <!--facebook 讚 結束-->
	        </div>

			{template 'historyproduct'}
		</div>
		<div class="buy917_producttoday_bottom"></div>
    </div><!-- buy917_product -->

    <div id="buy917_middle">
    	<div style="width:660px; float:left;">
        	<div class="buy917_productinfo_top"></div>
            <div class="buy917_productinfo">
                    <h2>本單詳情</h2>
                    {$value['goods_brief']}
            </div>
            <div class="buy917_productinfo_bottom"></div>
            <div class="buy917_productinfo_top"></div>
            <div class="buy917_productinfo">
                <h2>商品介紹</h2>
                 {$value['goods_about']}
            </div>
            <div class="buy917_productinfo_bottom"></div>

			<div class="buy917_productinfo_top"></div>
            <div class="buy917_productinfo">
                <h2>店家資訊</h2>
			    <div class="buy917_silderbox_content">
			        <div id="side-business">
			          <h3>{$value['name']}
					  	{if $value['map']}
						（<a id="maplink" href="map.php?xxyy={$value['map']}" target="_blank">點選放大</a>）</h3>
			          	<iframe src="gmap.php?xxyy={$value['map']}" width="290" height="200" frameborder="0" scrolling="no"></iframe>
						{/if}
			          <ul>
			            {if $value['address']}<li>地址：{$value['address']}</li>{/if}
			            {if $value['tel']}<li>電話：{$value['tel']}</li>{/if}
			            {if $value['web']}<li>網址：<a href="{str_replace('www.buy917.com/','',$value['web'])}" target="_blank">{$value['web']}</a></li>{/if}
			            {if $value['operating_time']}<li>營業時間：{$value['operating_time']}</li>{/if}
						{if $value['bus']}<li>交通路線：{$value['bus']}</li>{/if}
			          </ul>
			        </div>
			    </div>
            </div>
            <div class="buy917_productinfo_bottom"></div>



             <div class="buy917_productinfo_top"></div>
            <div class="buy917_productinfo">
				{if trim(strip_tags($value['goods_reviews'])) != ""}
                <h2 class="guest">網友分享</h2>
                <div id="guest_review">
                    <p>{$value['goods_reviews']}</p>
                     <ul class="review">
                        {loop $value['goods_reviews_contents'] $r}
                        <li>{$r['content']}<span>&mdash;&mdash;<a href="{$r['url']}"target="_blank">{$r['user']}</a>（{$r['web']}）</span></li>
                        {/loop}
                     </ul>
                </div>
				{/if}

                    <h2 class="admin">{$cfg_site_name}說</h2>
                       <div class="comment_balloon_outer">
                           <div class="top">
                           </div>
                           <div class="photo"></div>
                           <div class="contant">
                             {$value['goods_reviews_site']}
                           </div>
                           <div class="bottom">
                           </div>



                  </div><!-- blk review-->
            </div> <!-- buy917_productinfo -->
            <div class="buy917_productinfo_bottom"></div>
        </div>
        <!-- buy917_productinfo -->

        <div id="buy917_silder">
        	{template 'silder'}
        </div><!-- buy917_silder -->
    </div><!-- buy917_middle -->
</div><!-- buy917wrap -->
<!-- footer -->
<div id="buy917_footer">
	{template 'footer'}
</div>
</body>
</html>
<input type="hidden" text="<?php echo $_SESSION['refer'];?>">